﻿using Dal;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bll
{
    public class CarBLL
    {
        CarDAL dal = new CarDAL();
        #region 查看购物车
        public List<Car> SelCar(int UserID)
        {
            return dal.SelCar(UserID);
        }
        #endregion

        #region 添加购物车
        public int InsertOrder(int id)
        {
            return dal.InsertOrder(id);
        }
        #endregion

        #region 删除购物车
        public int DelCar(int CarId)
        {
            return dal.DelCar(CarId);
        }
        #endregion

        #region 数量添加
        public int AddUpdate(int CarId)
        {
            return dal.AddUpdate(CarId);
        }
        #endregion

        #region  数量减少
        public int JianUpdate(int CarId)
        {
            return dal.JianUpdate(CarId);
        }
        #endregion

    }
}
